<tagLib name="fanwe" />
<include file="Public:header" />
<form method="post" id="form" name="form" action="/admin/index.php?a=add&m=WoguRobot" style="width: 1208px;">
    <table cellpadding="4" cellspacing="0" border="0" class="table-form">
        <tbody>
            <tr>
                <th class="first" width="100">回答</th>
                <td><textarea name="answer" style="width: 410px; height: 172px;">{$answer['answer']}</textarea></td>
            </tr>
            <tr>
                <th class="first">关键词</th>
                <td>
                    <input type="text" class="textinput" name="keywords">用空格分开
                    <foreach name="keywords" item="item">
                    <p>{$item.keyword}<a href="?a=add&m=WoguRobot&op=del&id={$item.id}">删除</a></p>
                    </foreach>
                </td>
            </tr>
            <tr>
                <th class="first">tip/suggest</th>
                <td>
                    <table cellpadding="4" cellspacing="0" border="0" class="table-form">
                        <tr>
                            <th class="first" width="100">tip1</th>
                            <td><input type="text" class="textinput" name="tip1" value="{$answer['tip1']}"></td>
                            <th class="first" width="100">suggest1</th>
                            <td><textarea name="suggest1">{$answer['suggest1']}</textarea></td>
                        </tr>
                        <tr>
                            <th class="first" width="100">tip2</th>
                            <td><input type="text" class="textinput" name="tip2" value="{$answer['tip2']}"></td>
                            <th class="first" width="100">suggest2</th>
                            <td><textarea name="suggest2">{$answer['suggest2']}</textarea></td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr class="act">
                <th class="first">&nbsp;</th>
                <td>
                    <input type="submit" name="doadd" class="submit_btn" value="提交">&nbsp;&nbsp;
			        <input type="reset" class="reset_btn" value="重置">
			    </td>
			</tr>
	    </tbody>
	</table>
	<input type="hidden" name="id" value="{$aid}">
	<input type="hidden" name="doadd" value="1">
</form>
<include file="Public:footer" />